package org.neuedu.chapter03_0611;

public class CycleDemo07 {
    public static void main(String[] args) {
        // 控制台 打印数字 10!
        int i = 1;
        int sum = 1;
        while (i < 11) {
            sum = sum * i;
            i++;
        }
        System.out.println(sum);

        int jc = 1;
        for (int j = 1; j < 11; j++) {
            jc = jc * j;
        }
        System.out.println(jc);
    }
}
